﻿using Algorithms;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace UnitTests
{
    
    
    /// <summary>
    ///This is a test class for RectHVTest and is intended
    ///to contain all RectHVTest Unit Tests
    ///</summary>
    [TestClass()]
    public class RectHVTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for RectHV Constructor
        ///</summary>
        [TestMethod()]
        public void RectHVConstructorTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for contains
        ///</summary>
        [TestMethod()]
        public void containsTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            Point2D p = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.contains(p);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for distanceSquaredTo
        ///</summary>
        [TestMethod()]
        public void distanceSquaredToTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            Point2D p = null; // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.distanceSquaredTo(p);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for distanceTo
        ///</summary>
        [TestMethod()]
        public void distanceToTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            Point2D p = null; // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.distanceTo(p);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for equals
        ///</summary>
        [TestMethod()]
        public void equalsTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            object y = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.equals(y);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for height
        ///</summary>
        [TestMethod()]
        public void heightTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.height();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for intersects
        ///</summary>
        [TestMethod()]
        public void intersectsTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            RectHV that = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.intersects(that);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for toString
        ///</summary>
        [TestMethod()]
        public void toStringTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.toString();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for width
        ///</summary>
        [TestMethod()]
        public void widthTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.width();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for xmax
        ///</summary>
        [TestMethod()]
        public void xmaxTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.xmax();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for xmin
        ///</summary>
        [TestMethod()]
        public void xminTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.xmin();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ymax
        ///</summary>
        [TestMethod()]
        public void ymaxTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.ymax();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ymin
        ///</summary>
        [TestMethod()]
        public void yminTest()
        {
            double xmin = 0F; // TODO: Initialize to an appropriate value
            double ymin = 0F; // TODO: Initialize to an appropriate value
            double xmax = 0F; // TODO: Initialize to an appropriate value
            double ymax = 0F; // TODO: Initialize to an appropriate value
            RectHV target = new RectHV(xmin, ymin, xmax, ymax); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.ymin();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
